import Cookies from 'js-cookie'

const TokenKey = 'admin_token';
const Userkey = 'User_name';
const UserId = "User_Id";
//admin
export function getToken() {
    return Cookies.get(TokenKey)
}

export function setToken(token) {
    return Cookies.set(TokenKey, token)
}

export function removeToken() {
    return Cookies.remove(TokenKey)
}

//user
export function setTokenUser(token) {
    return Cookies.set(Userkey, token)
}

export function getTokenUser() {
    return Cookies.get(Userkey)
}

export function RemoveTokenUser() {
    return Cookies.remove(Userkey)
}

export function setUserId(token) {
    return Cookies.set(UserId, token)
}

export function getUserId() {
    return Cookies.get(UserId)
}
